package com.dayaokeji.rhythmschoolstudent.utils;

import com.dayaokeji.rhythmschoolstudent.client.common.exam.subject_type.utils.SubjectTypeUtil;

/**
 * Created by Gorden on 2017/10/18.
 */

public class ExamUtils {

    public static String getStatusName(int statusCode) {
        switch (statusCode) {
            case 1:
                return  "已关闭";
            case 2:
                return "未进行 ";
            case 3:
                return "进行中";
            case 4:
                return "已结束";
            case 5:
                return "已批阅";
            default:
                return "";
        }
    }

    public static String getSubjectTypeStr(int type) {
        String typeStr = "";
        switch (type) {
            case SubjectTypeUtil.SINGLE_CHOOSE:
                typeStr = "单选";
                break;
            case SubjectTypeUtil.MULTIPLE_CHOOSE:
                typeStr = "多选";
                break;
            case SubjectTypeUtil.BLANK_SUBJECT:
                typeStr = "填空";
                break;
            case SubjectTypeUtil.JUDGMENT_PROBLEM:
                typeStr = "判断";
                break;
            case SubjectTypeUtil.QUESTION_AND_ANSWER:
                typeStr = "问答";
                break;
        }
        return "题型："+typeStr;
    }

}
